package com.igroupes.ovineherd.dto.response;

import cn.hutool.json.JSONObject;
import lombok.Data;

import java.util.List;

/**
 * 模型返回
 */
@Data
public class ModelDataJsonListResponse {

    private String addTime;
    private String updateTime;
    private JSONObject table;
    private String desc;
    private List<JSONObject> fields;

    public ModelDataJsonListResponse(JSONObject table, List<JSONObject> fields) {
        this.table = table;
        this.fields = fields;
    }

    public ModelDataJsonListResponse(String addTime, String updateTime, JSONObject table, List<JSONObject> fields) {
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.table = table;
        this.fields = fields;
    }
}
